package com.example.dailyrecord.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import static com.example.dailyrecord.constant.Constant.TOKEN_HEADER;

public class RequestUtils {

    public static String getToken(HttpServletRequest request) {
        return request.getHeader(TOKEN_HEADER);
    }

    public static void setToken(HttpServletResponse response, String token) {
        response.setHeader(TOKEN_HEADER, token);
    }
}
